<script setup lang="ts">
	import type { IWeather } from '@/simba/types';

	const props = defineProps<{
		currentDate:IWeather
	}>()

	// console.log(props.currentDate)
</script>

<template>
	<view class="w-content">
		<view class="con-left">
			<view class="font-temperature">{{currentDate.temperature}}</view>
			<view class="con-weather">
				<up-image :src="currentDate.weatherIcon" width="50rpx" height="50rpx"></up-image>
				<span>{{currentDate.weather}}</span>
			</view>
		</view>
		<view class="con-right">{{currentDate.suggest}}</view>
	</view>
</template>

<style lang="scss">
.w-content{
	width: 734rpx;
	// height: 100%;
	display: flex;
	flex-direction: row;
	// margin-left: 10rpx;
	// margin-right: 10rpx;
	// border: 1rpx green solid;
	.con-left{
		width: 234rpx; 
		// border:1rpx red solid;
		.font-temperature{
			font-size: 46rpx;
		}
		.con-weather{
			display: flex; 
			flex-direction: row; 
			justify-content: center; 
			// border:1rpx red solid;
		}
	}
	.con-right{
		width: 500rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		// border:1rpx red solid
	}
}
</style>
